package org.homeorganiser.flex.manager;

import java.util.List;

import org.homeorganiser.flex.dao.BookDAO;
import org.homeorganiser.flex.dto.Book;

public class BookManager implements IBookManager {

	BookDAO bookdao;
	
	
	
	/**
	 * @return the bookdao
	 */
	public BookDAO getBookdao() {
		return bookdao;
	}

	/**
	 * @param bookdao the bookdao to set
	 */
	public void setBookdao(BookDAO bookdao) {
		this.bookdao = bookdao;
	}

	public Book addBook(Book book) {
		return bookdao.create(book);
	}

	public String deleteBook(Book book) {
		// TODO Auto-generated method stub
		return null;
	}

	public String updateBook(Book book) {
		// TODO Auto-generated method stub
		return null;
	}

	public List<Book> getAllBooks() {
		return bookdao.findAll(1);
				
	}

	

}
